// Oss文件上传
import request,{Method} from '@/libs/api.js'

// oss服务端签名后直传
export function policy(){
    return request({
        url : `/thirdparty/oss/policy`,
        method: Method.GET,
    })
}

// 获取文件选择组件的分页数据
export function getFileComponentsByPage (params) {
    return request({
      url: '/thirdparty/file/getFileComponentsByPage',
      method: Method.POST,
      data: params
    });
}

// 获取文件选择组件的分页数据
export function uploadOss (params) {
    return request({
      url: '/thirdparty/file/uploadOss',
      method: Method.POST,
      data: params
    });
}